﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Liger.Web.Common;
using Liger.Web.Common.Extensions;

namespace Liger.Web.UI
{ 

    public class GridSortingSettingsBuilder
    {
        private readonly GridSortingSettings sorting;
        public GridSortingSettingsBuilder(GridSortingSettings sorting)
        {
            this.sorting = sorting;
        }
        /// <summary>
        /// 是否排序
        /// </summary>
        /// <param name="value"></param>
        /// <returns></returns>
        public GridSortingSettingsBuilder Enabled(bool value)
        {
            this.sorting.Enabled = value;
            return this;
        }
    }
}
